package com.example.demo.util;

/**
 * 工具类
 * 
 * @author wang
 *
 */
public class StringUtil {

	/**
	 * 如果有为空和字符串为空，返回true
	 */

	public static boolean isBlank(Object... objects) {

		for (Object object : objects) {

			if (object == null || object.toString().trim().length() == 0) {

				return true;
			}
		}

		return false;

	}

	// 把String类型转换次Int类型，
	public static boolean isStringSwitchInt(String t) {
		int c = Integer.parseInt(t);
		if (c != 0 || "".length() != 0) {
			return true;
		}

		return false;
	}

	public static void main(String[] args) {

	}
}
